<form id="config-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="panel panel-default panel-intro">
        <div class="panel-heading">
            <ul class="nav nav-tabs nav-group">
                <li class="active"><a href="#zhongwu" data-toggle="tab">中午</a></li>
                <li><a href="#yilianyun" data-toggle="tab">易联云</a></li>
                <li><a href="#feie" data-toggle="tab">飞鹅</a></li>
            </ul>
        </div>

        <div class="panel-body">
            <div id="myTabContent" class="tab-content">
                {foreach $addon.config as $item}
                {if $item.name=='zhongwu'}
                <div class="tab-pane fade active in" id="zhongwu">
                    <table class="table table-striped table-config">
                        <tbody>
                        <tr>
                            <td width="25%">appid(应用id)</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[zhongwu][appid]" value="{$item.value.appid|default=''}" class="form-control" data-rule="" data-tip=""/>
                                        <div style="margin-top:5px;"><a href="http://www.zhongwu.co/platform.html" target="_blank"><i class="fa fa-question-circle"></i> 如何获取appid?</a></div>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>appsecret(应用秘钥)</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[zhongwu][appsecret]" value="{$item.value.appsecret|default=''}" class="form-control" data-rule="" data-tip=""/>
                                        <div style="margin-top:5px;"><a href="http://www.zhongwu.co/platform.html" target="_blank"><i class="fa fa-question-circle"></i> 如何获取appsecret?</a></div>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                {elseif $item.name=='yilianyun'}
                <div class="tab-pane fade" id="yilianyun">
                    <table class="table table-striped table-config">
                        <tbody>
                        <tr>
                            <td width="25%">appid(应用id)</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[yilianyun][appid]" value="{$item.value.appid|default=''}" class="form-control" data-rule="" data-tip=""/>
                                        <div style="margin-top:5px;"><a href="https://dev.yilianyun.net/doc/doc" target="_blank"><i class="fa fa-question-circle"></i> 如何获取appid?</a></div>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>appsecret(应用秘钥)</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[yilianyun][appsecret]" value="{$item.value.appsecret|default=''}" class="form-control" data-rule="" data-tip=""/>
                                        <div style="margin-top:5px;"><a href="https://dev.yilianyun.net/doc/doc" target="_blank"><i class="fa fa-question-circle"></i> 如何获取appsecret?</a></div>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>access_token</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[yilianyun][access_token]" value="{$item.value.access_token|default=''}" class="form-control" data-rule="" data-tip=""/>
                                        <div style="margin-top:5px;"><i class="fa fa-question-circle">access_token留空即可，打印机使用时将自动获取并保存</i></div>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                {elseif $item.name=='feie'}
                <div class="tab-pane fade" id="feie">
                    <table class="table table-striped table-config">
                        <tbody>
                        <tr>
                            <td width="25%">USER(注册用户名)</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[feie][USER]" value="{$item.value.USER|default=''}" class="form-control" data-rule="" data-tip=""/>
                                        <div style="margin-top:5px;"><a href="http://www.feieyun.com/open/index.html" target="_blank"><i class="fa fa-question-circle"></i> 如何获取USER?</a></div>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>UKEY(用户秘钥)</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[feie][UKEY]" value="{$item.value.UKEY|default=''}" class="form-control" data-rule="" data-tip=""/>
                                        <div style="margin-top:5px;"><a href="http://www.feieyun.com/open/index.html" target="_blank"><i class="fa fa-question-circle"></i> 如何获取UKEY?</a></div>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>IP</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[feie][IP]" value="{$item.value.IP|default=''}" class="form-control" data-rule="" data-tip=""/>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>PORT</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[feie][PORT]" value="{$item.value.PORT|default=''}" class="form-control" data-rule="" data-tip=""/>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>PATH</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[feie][PATH]" value="{$item.value.PATH|default=''}" class="form-control" data-rule="" data-tip=""/>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                {/if}
                {/foreach}
                <div class="form-group layer-footer">
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div class="col-xs-12 col-sm-8">
                        <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>

